#ifndef _IMAGE_SAVE_MARKANDSAVE_
#define _IMAGE_SAVE_MARKANDSAVE_

#include "../../../function.h"

namespace sp::Image::Save{

void registe_markAndSave();

class markAndSave: public Function{
private:
    char* video_ptr_head;
    char* current_video_ptr;
    int fps;
    int width;
    int height;
    int index;
public:
    markAndSave(std::vector<std::string> v);
    markAndSave(char* video_ptr_head, int fps, int width, int height);
    markAndSave();
    virtual ~markAndSave();
    static void registe();
    static Function* createObject(std::vector<std::string> params);
    static Function* createObject2();
    virtual void start();
    virtual bool waitForResource();
    virtual void process(std::vector<std::vector<Data*>>& data_input, std::vector<Data*>& data_output);
    virtual bool releaseResource();
    virtual void finish();
    virtual void copy(Function* other);
};

};

#endif